package com.qx.grainmall.elasticsearch.vo;

import lombok.Data;

import java.util.List;

@Data
public class SearchParam {

    //页面传递过的来的全文匹配关键字
    private String keyword;

    //三级分类 id
    private Long catalog3Id;

    //排序条件 : sort=price/salcount/hotscore_desc/asc
    private String sort;

    //仅显示有货 0 / 1 ( true  /  false)
    private boolean hasStock = true;

    //价格区间 400_(最少400) _5000(最大5000) 400_5000(价格400~5000)
    private String skuPrice;

    //品牌id 可以多选
    private List<Long> brandId;

    /**按照属性进行筛选
     * attrs=1_3G:4G:5G&
     * attrs=2_骁龙845&
     * attrs=4_高清屏
     */
    private List<String> attrs;

    ///页码
    private Integer pageNum = 1;

    //每页多少条数据
    private Integer size = 10;

    //原声所有查询属性
    private String _queryString;
}
